アセット・タイプに基づいた検索リソース・メタデータの取得
get
/resources/v1/metadata-catalog/search/types/{assetType}/assets
リソース・エンドポイントは、"application/json"を指定したリクエストの場合、リソース名、リソースのJSONスキーマへのリンク、検索リソース・インスタンスへのリンクなどのリソースの説明を返します。"application/schema+json"を指定したリクエストの場合、リソースのJSONスキーマが返されます。デフォルトは、"application/json"です。注意: これは、検索リソース・インスタンスのOPTIONSリクエストから返されるメタデータURLです。
次の表に、クライアント・リクエストをまとめます。
パス・パラメータ
| 名前 | 説明 | 形式 |
|---|---|---|
| assetType | アセット・タイプ | 文字列 |
次の表に、サーバー・レスポンスをまとめます。
サポートされるメディア・タイプ
- application/json
- application/schema+json
200レスポンス
リソース・メタデータ
例1
次の例に、cURLを使用してRESTリソースに対するGETリクエストを送信し、アセット・タイプに基づいた検索リソースの説明を取得する方法を示します。
curl -i -H "Accept: application/json" -X GET "http://<host>:<port>/<context>/REST/resources/v1/metadata-catalog/search/types/AVIArticle/assets"
例1 レスポンス・ヘッダー
次の例に、レスポンス・ヘッダーを示します。
HTTP/1.1 200 OK ETag: "a446dafb1ac330b34d89dc788a7d14efee9ad49ec7af6e784d22951f2893722e" Cache-Control: max-age=0 Content-Type: application/json;charset=utf-8
例1 レスポンス本文
次の例に、JSON形式のレスポンス本文のコンテンツを示します。
{
"name": "Asset Search Resource",
"links": [
{
"href": "http://<host>:<port>/<context>/REST/resources/v1/metadata-catalog/search/types/AVIArticle/assets",
"rel": "alternate",
"templated": false,
"mediaType": "application/schema+json",
"method": "GET",
"profile": ""
},
{
"href": "http://<host>:<port>/<context>/REST/resources/v1/metadata-catalog/search/types/AVIArticle/assets",
"rel": "canonical",
"templated": false,
"mediaType": "application/json",
"method": "GET",
"profile": ""
},
{
"href": "http://<host>:<port>/<context>/REST/resources/v1/search/types/AVIArticle/assets",
"rel": "describes",
"templated": false,
"mediaType": "application/json",
"method": "GET",
"profile": ""
}
]
}
例2
次の例に、cURLを使用してRESTリソースに対するGETリクエストを送信し、検索リソースのJSONスキーマを取得する方法を示します。
curl -i -H "Accept: application/schema+json" -X GET "http://<host>:<port>/<context>/REST/resources/v1/metadata-catalog/search/types/AVIArticle/assets"
例2 レスポンス・ヘッダー
次の例に、レスポンス・ヘッダーを示します。
HTTP/1.1 200 OK Cache-Control: max-age=0,no-cache,no-store Content-Type: application/schema+json;charset=utf-8
例2 レスポンス本文
次の例に、JSON形式のレスポンス本文のコンテンツを示します。
{
"$schema": "http://json-schema.org/draft-04/schema#",
"title": "Search Collection Items Schema",
"description": "Schema for Search Collection Resource",
"allOf": [
{
"$ref": "http://<host>:<port>/<context>/schema/collectionResource#"
},
{
"$ref": "#/definitions/collectionItems"
}
],
"definitions": {
"collectionItems": {
"type": "object",
"properties": {
"items": {
"type": "array",
"items": {
"$ref": "http://<host>:<port>/<context>/schema/searchAssetSchema#"
}
}
}
}
}
}